package com.aios.dao;

import com.aios.entity.IrisUserHasDoor;
import com.aios.entity.IrisUserHasDoorExample;
import com.aios.entity.IrisUserHasDoorKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface IrisUserHasDoorMapper {
	int countByExample(IrisUserHasDoorExample example);

	int deleteByExample(IrisUserHasDoorExample example);

	int deleteByPrimaryKey(IrisUserHasDoorKey key);

	int insert(IrisUserHasDoor record);

	int insertSelective(IrisUserHasDoor record);

	List<IrisUserHasDoor> selectByExample(IrisUserHasDoorExample example);

	IrisUserHasDoor selectByPrimaryKey(IrisUserHasDoorKey key);

	int updateByExampleSelective(@Param("record") IrisUserHasDoor record,
			@Param("example") IrisUserHasDoorExample example);

	int updateByExample(@Param("record") IrisUserHasDoor record,
			@Param("example") IrisUserHasDoorExample example);

	int updateByPrimaryKeySelective(IrisUserHasDoor record);

	int updateByPrimaryKey(IrisUserHasDoor record);

	@Select("SELECT IRIS_USER_ID as ID FROM iris_user_has_door WHERE DOOR_ID = #{id} ORDER BY SORT_ORDER")
	@ResultMap(value = "ExistingUsersResultMap")
	List<Integer> findExistingUserList(@Param("id") Integer id);
}